<?php

class Revision_model extends MY_Model
{
    protected $_table = 'chatrevision';   
    protected $primary_key = 'id';   
    //fixed future
	function next_revision()
	{
		$this->db->set($this->primary_key, 'id+1', FALSE);
		$this->db->update('chatrevision'); 
		
		$revision = $this->get_all_array();
		return $revision[0]['id'];
	}
}
